package rulesControl;

import gameBasicElements.Board;
import gameBasicElements.ScoreBoard;

/**
 * @author Tomasz Wiatrowski
 *
 */
public class Rules {
	private Board board;
	private MovementApprovers[] approvers;
	private Handicap handicap;
	private ByoYomi byoYomi;
	public Rules() {
		
	}
	public Rules(Board board, MovementApprovers[] approvers, Handicap handicap, ByoYomi byoYomi) {
		this.board = board;
		this.approvers = approvers;
		this.handicap = handicap;
		this.byoYomi = byoYomi;
	}
	public Board getBoard() {
		return board;
	}
	public Handicap getHandicap() {
		return handicap;
	}
	public MovementApprovers[] getApprovers() {
		return approvers;
	}
	public ByoYomi getByoYomi() {
		return byoYomi;
	}
	public ScoreBoard getScores(Board board) {
		return new ScoreBoard(board, getHandicap().getKomi());
	}
}
